/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.apps.epocket.stripes.util;

import com.apps.epocket.dao.KategoriProdukDAO;
import com.apps.epocket.dao.KodNegeriDAO;
import com.apps.epocket.model.KategoriProduk;
import com.apps.epocket.model.KodNegeri;
import com.apps.epocket.stripes.BaseActionBean;
import com.google.inject.Inject;
import java.util.List;

/**
 *
 * @author fikri
 */
public class ListUtil extends BaseActionBean {
    
    @Inject KategoriProdukDAO kategoriProductDAO;
    
    @Inject KodNegeriDAO kodNegeriDAO;
    
    
    public List<KategoriProduk> getSenaraiKategoriProduk() {
        return kategoriProductDAO.findAll();
    }
    
    public List<KodNegeri> getSenaraiKodNegeri() {
        return kodNegeriDAO.findAll();
    }
}
